home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Util / M / MacDOS 3.0.sit / MacDOS 3.0 ƒ / executables / MacDOS 3.0.rsrc / TEXT_164_READ.txt < prev    next >
Encoding:
Text File  |  1995-04-09  |  622 b   |  14 lines

  1. Reads a line of text from a file opened with OPEN.
  2.  
  3. READ fileID [var]
  4.  
  5.  fileID  is the number returned by OPEN.
  6.          The file can be closed with the command CLOSE and is automatically
  7.          closed when the EOF is read.
  8.  var     is the name of the global variable where the line is to be stored.
  9.          If it is missing, the line is displayed on the screen.
  10.          READ strips the newline character (CR) at the end of each line
  11.          containing more than one character, and replaces it with a space
  12.          if the line only contains the CR. This guarantees that a non-empty
  13.          line is always returned.
  14.